﻿using SHZY.Common.Const;
using SHZY.Common.Contracts;
using SqlSugar;

namespace SHZY.Business.Entitys.WMS.Entity;

/// <summary>
/// 库存占用实体.
/// </summary>
[SugarTable("wms_busi_stock_reserved", "库存占用")]
[Tenant(ClaimConst.TENANTID)]
public class WmsBusiStockReservedEntity : CLDEntityBase
{
    /// <summary>
    /// 库存表Id.
    /// </summary>
    [SugarColumn(ColumnName = "F_StockId", ColumnDescription = "库存表Id")]
    public string StockId { get; set; }

    /// <summary>
    /// 任务表Id.
    /// </summary>
    [SugarColumn(ColumnName = "F_TaskId", ColumnDescription = "任务表Id")]
    public string TaskId { get; set; }

    /// <summary>
    /// 数量.
    /// </summary>
    [SugarColumn(ColumnName = "F_Qty", ColumnDescription = "数量")]
    public decimal Qty { get; set; }

    /// <summary>
    /// Site.
    /// </summary>
    [SugarColumn(ColumnName = "F_Site", ColumnDescription = "Site")]
    public string Site { get; set; }

    /// <summary>
    /// 是否执行：Y是 N否.
    /// </summary>
    [SugarColumn(ColumnName = "F_ExecuteFlag", ColumnDescription = "是否执行：Y是 N否")]
    public string ExecuteFlag { get; set; }

    /// <summary>
    /// 是否取消：Y取消 N不取消.
    /// </summary>
    [SugarColumn(ColumnName = "F_CancelFlag", ColumnDescription = "是否取消：Y取消 N不取消")]
    public string CancelFlag { get; set; }

    /// <summary>
    /// 执行时间.
    /// </summary>
    [SugarColumn(ColumnName = "F_ExecuteDate", ColumnDescription = "执行时间")]
    public DateTime? ExecuteDate { get; set; }

    /// <summary>
    /// 取消时间.
    /// </summary>
    [SugarColumn(ColumnName = "F_CancelDate", ColumnDescription = "取消时间")]
    public DateTime? CancelDate { get; set; }

    /// <summary>
    /// 取消人.
    /// </summary>
    [SugarColumn(ColumnName = "F_CancelBy", ColumnDescription = "取消人")]
    public string CancelBy { get; set; }

}